﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameProject.World
{
    class World
    {
        #region Fields

        private int[,] m_worldGrid;
        private int m_width;
        private int m_height;
        #endregion

        #region Constructs

        public World(int a_width = 16, int a_height = 16)
        {
            m_width = a_width;
            m_height = a_height;
            m_worldGrid = new int[a_width, a_height];
            GenerateRandomGameboard();
        }
        #endregion

        #region Properties

        public int[,] WorldGrid
        {
            get { return m_worldGrid; }
        }
        #endregion

        #region Methods

        private void GenerateRandomGameboard()
        {
            Random rand = new Random();
            for (int h = 0; h < m_height; h++)
            {
                for (int w = 0; w < m_width; w++)
                {
                    m_worldGrid[w, h] = rand.Next(0, 4);
                }
            }
        }

        #endregion
    }
}